package com.xs.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * projectName:MyBatis_02-9_24
 * author:xiaoshun
 * time:2024/9/24 下午4:51
 * description:
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Books {
    private Integer id;
    private String title;
    private String author;
    private Date publishDate;
    private String publisher;
    private String isbn;
    private BigDecimal price;
    private String picture;
    private Integer cid;

    public Books(Integer id, String title, String author, Date publishDate, String publisher, String isbn, BigDecimal price, String picture, Integer cid) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.publishDate = publishDate;
        this.publisher = publisher;
        this.isbn = isbn;
        this.price = price;
        this.picture = picture;
        this.cid = cid;
    }

    private CateGory cateGory;
}
